<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>XX系统 - 后勤信息管理</title>
	<link rel="stylesheet" href="/css/main.css">
	<link rel="stylesheet" href="/css/font-awesome/css/font-awesome.css">
</head>
<body>
<div class="box">
	<h3>后勤人员信息管理</h3>
	<div class="actions">
		<div>
			<a class="btn btn-primary" href="/log/toAdd">添加后勤人员信息</a>
		</div>
	</div>

	<table class="list">
		<tr>
			<th>姓名</th>
			<th>身份证号</th>
			<th>手机号</th>
			<th>性别</th>
			<th>部门岗位</th>
			<th>添加时间</th>
			<th>工资</th>
			<th>籍贯</th>
			<th>操作</th>
		</tr>
		<c:forEach items="${logs.list}" var="log" varStatus="status">
			<tr>
				<td>${log.lo_name}</td>
				<td>${log.lo_id_card}</td>
				<td>${log.lo_phone}</td>
				<td>${log.lo_sex == "1" ? "男" : "女"}</td>
				<td>${log.lo_post}</td>
				<td><fmt:formatDate value="${log.lo_create_time}" pattern="yyyy-MM-dd"/></td>
				<td>${log.lo_sal}</td>
				<td>${log.lo_native_place}</td>
				<td>
					<a class="fa fa-info" title="详情" href="/log/detail?id=${log.lo_id}"></a>
					&nbsp;&nbsp;
					<a class="fa fa-pencil" title="编辑" href="/log/toEdit?id=${log.lo_id}"></a>
					&nbsp;&nbsp;
					<a class="fa fa-remove" title="删除" href="/log/del?id=${log.lo_id }" onclick="confirmDelete(1)"></a>
				</td>
			</tr>
		</c:forEach>
	</table>
	<div class="pager-info">
		<div>共有 ${logs.total} 条记录，第 ${logs.pageNum }/${logs.pages} 页 </div>
		<div>
			<ul class="pagination">
				<li class="paginate_button previous disabled }">
					<c:if test="${logs.hasPreviousPage}">
						<a href="/log/list?currentPage=${logs.prePage}">上一页</a>
					</c:if>
				</li>
				<li class="paginate_button active"><a href="#">${logs.pageNum}</a></li>
				<li class="paginate_button next disabled">
					<c:if test="${logs.hasNextPage}">
						<a href="/log/list?currentPage=${logs.nextPage}">下一页</a>
					</c:if>
				</li>
			</ul>
		</div>
	</div>
</div>
<script src="js/jQuery.js"></script>
<script>
function confirmDelete(id){
	if (confirm("确定要删除码？")) {
	}
	return false;
}
</script>
</body>
</html>